﻿namespace BM.Tools.WebControls.MForm.Controls.Items
{
    using System;

    /// <summary>
    /// Provides data for the ItemCreated events of an <see cref="Offspring" />.
    /// </summary>
    public class OffspringItemEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="OffspringItemEventArgs"/> class.
        /// </summary>
        /// <param name="item">
        /// The associated item.
        /// </param>
        /// <param name="index">
        /// The index.
        /// </param>
        public OffspringItemEventArgs(OffspringItem item, int index)
        {
            Item = item;
            Index = index;
        }

        /// <summary>
        /// Gets the <see cref="OffspringItem" /> associated with the event.
        /// </summary>
        public OffspringItem Item
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the index of the associated item.
        /// </summary>
        public int Index
        {
            get;
            private set;
        }
    }
}
